

<?php

if($site->page_settings['sidebar']==1) { // now gonna be a number
	
	include($_SERVER['DOCUMENT_ROOT'].'/themes/'.$site->settings['folder_path'].'/sidebar.php'); // what if it's a blog ? - regex it perhaps  ?
} 
?>
<div id="top-bar">
	<div id="social-media">
    	<a href="" class="social social-rss">RSS</a>
        <a href="" class="social social-twitter">Twitter</a>
        <a href="" class="social social-facebook">Facebook</a>
        <a href="" class="social social-linkedin">Linked In</a>
        <a href="" class="social social-reddit">Reddit</a>
        <a href="" class="social social-digg">Digg</a>
        <a href="" class="social social-stumbleupon">Stumble Upon</a>
    </div>
<div class="q-wrapper blc brc">
<form enctype="application/x-www-form-urlencoded" method="get">
<input type="text" id="q" name="q" class="blc brc" style="border:none;" value="<?php echo($_GET['q']); ?>" /><input type="submit" value="" class="search-mg" />
</form>
</div>
<div class="clearfix"></div>
</div>